/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.master;

import com.kmcsoft.emaster.entity.TrackableEntity;
import java.util.HashSet;
import java.util.Set;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "shop_Goldsmith")
@FetchGroup(name = "detach_Goldsmith_ProductJewelry", members = {
    @Persistent(name = "productJewelrys")})
public class Goldsmith extends TrackableEntity {

    @Persistent
    private String name;
    @Persistent
    private String type;
    @Persistent
    private String description;
    @Persistent(mappedBy="goldsmith")
    private Set<ProductJewelry> productJewelrys;

    public Goldsmith() {
        productJewelrys = new HashSet<ProductJewelry>();
    }

    public Set<ProductJewelry> getProductJewelrys() {
        return productJewelrys;
    }

    public void setProductJewelrys(Set<ProductJewelry> productJewelrys) {
        this.productJewelrys = productJewelrys;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
